import Mock from 'mockjs'


// 基本信息表格
const tableListDataSource = []
const streetArray = ['西乡', '宝安', '龙岗', '南山', '龙华', '惠城', '仲恺', '罗湖']
for (let i = 0; i < 10; i += 1) {
    tableListDataSource.push(Mock.mock({
        user_name: 'admin',
        manage_name: '@cname',  // 管理员姓名
        manage_street: `${streetArray[Math.floor((Math.random() * 8))]}`,  // 负责街道
        'status|0-1': 1.5,      //  状态 启用 1 禁用 0 
    }))
}



export default {
  'GET  /mock/fake_user_data': {
      status: 200,
      totalPageSize: 300,
      tableListDataSource
  },

  'POST  /mock/pagingData': {
    status: 200,
    totalPageSize: 300,
    tableListDataSource
  },

  'POST  /mock/delet': {
    status: 200
  },

  'POST  /mock/add': {
    status: 200
  },


};